package For;

/**
 * 嵌套循环
 *
 * 使用嵌套循环打印以下图形
 *   *
 *   **
 *   ***
 *   ****
 *   *****
 */
public class Demo04 {
    public static void main(String[] args) {
        for (int a=1;a<=5;a++){
            for (int b = 1; b<=a;b++){
                System.out.print("*");
            }
            System.out.println();
        }
    }
}
